<?php
class Views_Helpers_ShowIndexSlider extends Zend_View_Helper_Abstract{
        public $view;
        public function setView(Zend_View_Interface $view){
            $this->view = $view;
        }

	public function ShowIndexSlider(){
            $jquery = $this->view->jQuery();
            $jquery->enable();
            $jqHandler = ZendX_JQuery_View_Helper_JQuery::getJQueryHandler();
            $way = $this->view->url(array('controller' => 'html', 'action' => 'img'), 'default', true);

            $function = ' ' . file_get_contents(dirname(__FILE__) . '/ShowIndexSlider.js');
            if($jqHandler == '$') $jqHandler = '';
            $jquery->addOnload($jqHandler . $function);
            $str = '
                <ul class="sliderindexpage">
                    <li><p class="roundsliderpoints" title="1">&nbsp;</p></li>
                    <li><p class="roundsliderpoints" title="2">&nbsp;</p></li>
                    <li><p class="roundsliderpoints" title="3">&nbsp;</p></li>
                </ul>
                <div class="clear" style="height:10px;"></div>
                <div class="sliderfield">
                    <div class="sliderline">
                        <div class="sliderfield">
                        ' . $this->view->showNews() . '
                        </div>
                        <div class="sliderfield">
                        ' . $this->view->showNewPosts() . '
                        </div>
                        <div class="sliderfield">
                        ' . $this->view->showNewBlogs() . '
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="clear" style="height:40px;"><p class="plikelogo" style="padding-top:20px;"> &larr; Ctrl &rarr;</p></div>
            ';
            
            return $str;
	}
}
